﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimpleRest.Core.Exceptions;

namespace SimpleRest.Core.Extensions.OAuth.Exceptions
{
    public class InvalidRequestException : WebExceptionBase, IOAuthException
    {
        public InvalidRequestException() :
            base(@"The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials,utilizes more than one mechanism for authenticating theclient, or is otherwise malformed.") { }

        public override System.Net.HttpStatusCode StatusCode
        {
            get { return System.Net.HttpStatusCode.BadRequest; }
        }

        public override string ErrorCode
        {
            get { return "invalid_request"; }
        }

        public string OAuthMessage
        {
            get { return "invalid_request"; }
        }
    }
}
